import '../util.dart';

class UrlPath {
  //TODO: 非上架版本 包含日志 测试需要
  static bool isDebug = true;

  static String baseUrl = "https://jixiao.inspirestar.cn";
  static String baseUrl2 = 'https://192.168.3.215:3000';
  static String baseUrl1 = "https://jixiao.inspirestar.cn";

  static bool get isTest {
    return baseUrl == baseUrl2;
  }

  static void setBaseUrl({bool isTest = true}) {
    SpUtil().setBool(StorageKeys.base_url, isTest);
    baseUrl = isTest ? baseUrl2 : baseUrl1;
  }

  static void getBaseUrl() {
    if (!isDebug) {
      return;
    }
    var isTest = SpUtil().getBool(StorageKeys.base_url);
    baseUrl = isTest == true ? baseUrl2 : baseUrl1;
  }

  //更新接口
  static String checkUpdate =
      'https://gitee.com/ichengchengcui/top_check_version/raw/master/%E4%BA%92%E8%81%94%E7%BD%91+%E5%85%AC%E5%8A%A1%E5%91%98%E7%BB%A9%E6%95%88/update';

  //用户协议
  static String agreeAssessment =
      'https://jixiao.inspirestar.cn/assessment-app/#/privacy?index=6&platform=flutter';

  //隐私政策
  static String agreePrivacy =
      'https://jixiao.inspirestar.cn/assessment-app/#/privacy?index=0&platform=flutter';

  static String login = "/public-uias-api/uias_login/internalLogin";

  static String register = "/public-uias-back/uias-tenant/addNewTenant";

  static String sendCode = "/public-uias-api/uias_login/sendSignCodeByTelecom";

  static String updatePassword = "/public-uias-api/uias_login/updatePassword";

  ///注销账号
  static String cancellationOfAccount =
      "/public-uias-api/uias_login/cancellationOfAccount";

  static String wanjian =
      "https://gitee.com/ichengchengcui/tp-apps/raw/master/infos.json";

  static String dailyInfo = "/jx-attendance-reg/sa-form/getAttendanceDailyInfo";

  // 待办事项 已办事项
  static String listNeedDeals = "/rcdg-record/record-need-deal/listNeedDeals";
  // 纪实回复列表
  static String pageSelfRecordSuggest =
      "/rcdg-record/record-suggest/pageSelfRecordSuggest";

  //评价详情
  static String getFirstAssessData =
      '/topnet-assess/sa-leader-assess/getFirstAssessData';

  //获取领导评分详情
  static String getUserAssessData =
      '/topnet-assess/sa-leader-assess/getUserAssessData';

  //评分详情
  static String getAssessContent =
      '/topnet-assess/sa-leader-assess/getAssessContent';

  static String listGoodConfigByNeedId =
      '/topnet-assess/sa-assess-config/listGoodConfigByNeedId';

  // /public-uias-api/uias-menu/listRecursiveMenuByBelong?belongPage=APP_HOME_APPLY
  static String listRecursiveMenuByBelong =
      "/public-uias-api/uias-menu/listRecursiveMenuByBelong";

  // /jx-backstage/bulletion/selectAllBulletin?pageNum=1&pageSize=2&status=1&type=0&userType=2
  static String selectAllBulletin = "/jx-backstage/bulletion/selectAllBulletin";

  ///绩效榜弹框数据
  static String getHonorRollTip =
      "/topnet-assess/sa-honor-roll/getHonorRollTip";

  //考核季度
  static String assessmentQuarter =
      '/topnet-assess/sa-honor-roll/selectAllChoose';
  //部门
  static String honorOrg = '/topnet-assess/sa-honor-roll/getHonorOrgList';
  //考核季度
  static String grade = '/topnet-assess/sa-honor-roll/selectAllChoose';

  //绩效榜
  static String boardPublicList =
      '/topnet-assess/sa-honor-roll/orgGetHonorRollDetailResponse';
  //个人绩效榜
  static String boardPersonList =
      '/topnet-assess/sa-performance/listPersonalPerformance';

  //消息列表
  static String msgList = '/jx-backstage/bulletion/selectAllBulletinNumByType';
  //消息类型列表
  static String msgTypeList = '/topnet-assess/std-notice/listNoticesByType';
  //消息详情
  static String msgDetail = '/jx-attendance-reg/sa-form/getAttendanceDailyInfo';

  //更新所有为已读
  static String updateAllNoticeRead =
      '/topnet-assess/std-notice/updateAllNoticeRead';

  //消息详情 审核
  static String getFlowApproveList =
      '/jx-attendance-reg/sa-form/getFlowApproveList';

  ///工作通知详情
  static String getBulletionDetail =
      '/jx-backstage/bulletion/getBulletionDetail';

  ///阅读记录次数
  static String saveRead = '/jx-backstage/bulletion/saveRead';

  ///考勤表单类型
  static String listAttendanceFormType =
      '/jx-attendance-reg/sa-form/listAttendanceFormType';

  ///考勤表单状态变更
  static String updateAttendanceDailyStatus =
      '/jx-attendance-reg/sa-form/updateAttendanceDailyStatus';

  ///department
  static String selectAllDepartment =
      '/jx-attendance-reg/data-authority/selectAllDepartment';

  ///考勤表单
  static String listAttendanceDaily =
      '/jx-attendance-reg/sa-form/listAttendanceDaily';

  ///考勤统计内容
  static String getAttendanceRoleAndStandard =
      '/jx-attendance-reg/sa-statistics-overseer/getAttendanceRoleAndStandard';

  ///考勤统计日历
  static String getUserStatisticsCalendar =
      '/jx-attendance-reg/sa-statistical-summary/getUserStatisticsCalendar';

  ///标记为已读
  static String recordToIsRead =
      '/rcdg-record/record-need-deal/updateNeedDealRead';

  ///季度总结
  static String getScoreQuarterRecordForm =
      '/rcdg-record/record-base/v2/getScoreQuarterRecordForm';

  ///纪实
  static String getScoreSideBarRecordForm =
      '/rcdg-record/record-base/v2/getScoreSideBarRecordForm';

  ///纪实 部门
  static String listLookOrgan = '/rcdg-record/record-base/v2/listLookOrgan';

  ///纪实分类
  static String listLookUser = '/rcdg-record/record-base/v2/listLookUser';

  ///纪实列表
  static String listRecordNoteCalendarV2 =
      '/rcdg-record/record-base/v2/listRecordNoteCalendarV2';

  ///季度总结
  static String summarize =
      '/rcdg-record/record-base/v2/getRecordDetailByPeriod';

  ///季度考核登记表
  static String summarizeForm = '/rcdg-record/form-evaluation/getFormByNoteId';

  ///年度考核登记表
  static String summarizeYearForm =
      '/rcdg-record/record-base/getYearRecordForm';

  ///年度考核登记表  暂存
  static String saveYearRecordForm =
      '/rcdg-record/record-base/saveYearRecordForm';

  ///评议列表
  static String getCommentData =
      '/topnet-assess/sa-comment-column/getCommentData';

  ///审批列表
  static String listAttendanceApprove =
      '/jx-attendance-reg/sa-form/listAttendanceApprove';

  ///部门统计
  static String getOrgStatisticsSum =
      '/jx-attendance-reg/sa-statistical-summary/getOrgStatisticsSum';

  ///部门统计列表
  static String getOrgStatisticsDetail =
      '/jx-attendance-reg/sa-statistical-summary/getOrgStatisticsDetail';

  ///考勤时间
  static String getSearchTimeList =
      '/jx-attendance-reg/data-authority/getSearchTimeList';

  ///考勤请假天数
  static String getUserStatisticsSum =
      '/jx-attendance-reg/sa-statistical-summary/getUserStatisticsSum';

  ///考勤类型
  static String getTypeList = '/jx-attendance-reg/data-authority/getTypeList';

  ///考勤部门
  static String getDataPermissions =
      '/jx-attendance-reg/data-authority/getDataPermissions';

  ///考勤列表
  static String getOrgStatisticsDetailApp =
      '/jx-attendance-reg/sa-statistical-summary/getOrgStatisticsDetailApp';

  ///个人考勤列表
  static String getUserStatisticsDetail =
      '/jx-attendance-reg/sa-statistical-summary/getUserStatisticsDetail';

  ///文件上传
  static String uploadFiles = '/topnet-assess/sa-file-baseInfo/uploadFiles';

  ///考勤验证时间
  static String getValidByTimeZone =
      '/jx-attendance-reg/sa-form/getValidByTimeZone';

  ///更新请假单
  static String updateAttendanceDaily =
      '/jx-attendance-reg/sa-form/updateAttendanceDaily';

  ///提交请假单
  static String addAttendanceDaily =
      '/jx-attendance-reg/sa-form/addAttendanceDaily';

  ///请假类型
  static String listAttendanceLeaveType =
      '/jx-attendance-reg/sa-form/listAttendanceLeaveType';

  ///获取周纪实表单
  static String getWeekRecordForm =
      '/rcdg-record/record-base/v2/getWeekRecordForm';

  ///获取月纪实表单
  static String getMonthRecordForm =
      '/rcdg-record/record-base/v2/getMonthRecordForm';

  ///获取季度纪实表单
  static String getRecordDetailByPeriod =
      '/rcdg-record/record-base/v2/getRecordDetailByPeriod';

  ///纪实退回
  static String saveReturn = '/rcdg-record/record-base/saveReturn';

  ///纪实回复提交
  static String saveSuggest = '/rcdg-record/record-base/saveSuggest';

  ///任务类型
  static String queryCodeInfo = '/rcdg-record/code-public/queryCodeInfo';

  ///请假类型
  static String queryRoleCodeInfo =
      '/rcdg-record/code-public/queryRoleCodeInfo';

  ///工作纪实 暂存
  static String addRecordNoteWeek =
      '/rcdg-record/record-base/v2/addRecordNoteWeek';

  ///工作纪实 月 暂存
  static String addRecordNoteMonth =
      '/rcdg-record/record-base/v2/addRecordNoteMonth';

  ///工作纪实 提交
  static String checkSubmitRecord =
      '/rcdg-record/record-base/v2/checkSubmitRecord';

  ///季度工作纪实 暂存
  static String saveForm = '/rcdg-record/form-evaluation/saveForm';

  ///季度工作纪实 修改
  static String addRecordNoteSeason =
      '/rcdg-record/record-base/v2/addRecordNoteSeason';

  ///本周工作纪实 收藏
  static String collectNoteTemplateInfo =
      '/rcdg-record/record-template/collectNoteTemplateInfo';

  ///本周工作纪实 模板
  static String queryNoteTemplateList =
      '/rcdg-record/record-template/queryNoteTemplateList';

  ///本周工作纪实 个人模板删除
  static String delNoteTemplateInfo =
      '/rcdg-record/record-template/delNoteTemplateInfo';

  ///加分项列表
  static String listInputBonusPoints =
      '/topnet-assess/sa-bonus-points/listInputBonusPoints';

  ///加分项审定列表
  static String listBonusConfirm =
      '/topnet-assess/sa-bonus-points/listBonusConfirm';

  ///加分项审定列表数据统计
  static String getBonusConfirmListCount =
      '/topnet-assess/sa-bonus-points/getBonusConfirmListCount';

  ///年季度查询
  static String selectYearAndQuarter =
      '/topnet-assess/sa-bonus-points/selectYearAndQuarter';

  ///加分项详情查询
  static String getBonusPointsDetails =
      '/topnet-assess/sa-bonus-points/getBonusPointsDetails';

  ///加减分项构成
  static String listIndexList = '/topnet-assess/sa-bonus-points/listIndexList';

  ///加分项录入提交
  static String inputBonusPoints =
      '/topnet-assess/sa-bonus-points/inputBonusPoints';

  ///加分项审核不通过
  static String returnBonusPoints =
      '/topnet-assess/sa-bonus-points/returnBonusPoints';

  ///部门下用户列表
  static String listAllUserByOrgId =
      '/topnet-assess/sa-bonus-points/listAllUserByOrgId';

  ///民主测评列表
  static String listAssessmentData =
      '/topnet-assess/sa-assessment/listAssessmentData';

  ///民主测评详情
  static String listAssessmentResult =
      '/topnet-assess/sa-assessment-result/listAssessmentResult';

  ///民主测评详情
  static String getNoCivilNeedAssessByOrgId =
      '/topnet-assess/sa-assess-final-result/getNoCivilNeedAssessByOrgId';

  ///季度总结退回
  static String assessmentBack = '/rcdg-record/record-base/add';

  //评价保存
  static String saveSimpleAssess =
      '/topnet-assess/sa-leader-assess/saveSimpleAssess';

  //指标评价保存
  static String saveAssessScore =
      '/topnet-assess/sa-leader-assess/saveAssessScore';

  //催报
  static String saveUrgeByNeedDeal =
      '/rcdg-record/form-progress/saveUrgeByNeedDeal';

  //全部提交检查
  static String checkSubmitAllAssess =
      '/topnet-assess/sa-leader-assess/checkSubmitAllAssess';
//全部提交
  static String submitAllAssess =
      '/topnet-assess/sa-leader-assess/submitAllAssess';

  //批量评价表
  static String listAssessContent =
      '/topnet-assess/sa-leader-assess/listAssessContent';

  //批量评价等次
  static String getAssessTarget =
      '/topnet-assess/sa-leader-assess/getAssessTarget';

  //测评季度列表
  static String getQuarterAssessPeriods =
      '/topnet-assess/sa-assess-final-result/getQuarterAssessPeriods';

  //测评部门列表
  static String listAssessmentOrgan =
      '/topnet-assess/sa-assessment-result/listAssessmentOrgan';
  //组织部数据查询
  static String listAssessmentResultOrgan =
      '/topnet-assess/sa-assessment-result/listAssessmentResultOrgan';

//更新消息阅读状态
  static String updateNoticeRead = '/rcdg-record/notice/updateNoticeRead';

  //考勤人员信息
  static String getRegInfo = '/jx-attendance-reg/sa-form/getRegInfo';

  ///关联请假单
  static String listRelatedLeave =
      '/jx-attendance-reg/sa-form/listRelatedLeave';

  ///历史评价
  static String getUserHistoryAssessData =
      '/topnet-assess/sa-leader-assess/getUserHistoryAssessData';

  ///获取加减分描述
  static String getCalcScoreByUserId =
      '/topnet-assess/sa-leader-assess/getCalcScoreByUserId';

  ///测评管理详情
  static String getAssessmentDetail =
      '/topnet-assess/sa-assessment/skipValidation/getAssessmentDetail';

  ///测评管理详情
  static String updateAssessmentCheckStatus =
      '/topnet-assess/sa-assessment/updateAssessmentCheckStatus';

  ///物品领用
  static String listLogicticsApplys =
      '/rcdg-logictics/logictics-info/listLogicticsApplys';

  ///物品审核
  static String listLogicticsConfirm =
      '/rcdg-logictics/logictics-info/listLogicticsConfirm';

  ///获取领用物品列表
  static String getAddDetailInfo =
      '/rcdg-logictics/logictics-info/getAddDetailInfo';

  ///获取领用物品详情
  static String getLogicticsInfoDetail =
      '/rcdg-logictics/logictics-info/getLogicticsInfoDetail';

  ///获取领用物品审批流程
  static String thingApproveFlow =
      '/rcdg-logictics/logictics-info/getFlowApproveList';

  ///获取领用物品审批流程
  static String listButtonInfo = '/public-uias-api/uias-menu/listButtonInfo';

  ///暂存
  static String addLogicticsInfo =
      '/rcdg-logictics/logictics-info/addLogicticsInfo';

  ///更新 提交
  static String updateLogicticsInfo =
      '/rcdg-logictics/logictics-info/updateLogicticsInfo';

  ///删除
  static String delLogicticsInfo =
      '/rcdg-logictics/logictics-info/delLogicticsInfo';

  ///批量确定检查
  static String checkBatchConfirmAuthority =
      '/rcdg-logictics/logictics-info/checkBatchConfirmAuthority';

  ///批量确定
  static String approveBatch = '/rcdg-logictics/logictics-info/approveBatch';

  ///出差审批表  差旅费报销单
  static String listTripReimburseApplys =
      '/rcdg-logictics/sa-trip-reimburse/listTripReimburseApplys';

  ///出差前审核  差旅费审核
  static String listTripReimburseConfirm =
      '/rcdg-logictics/sa-trip-reimburse/listTripReimburseConfirm';

  ///获取部门所有人员列表
  static String getAllUserList =
      '/rcdg-logictics/sa-trip-reimburse/getAllUserList';

  ///添加出差审批表
  static String addTripReimburse =
      '/rcdg-logictics/sa-trip-reimburse/addTripReimburse';

  ///更新出差审批表
  static String updateTripReimburse =
      '/rcdg-logictics/sa-trip-reimburse/updateTripReimburse';

  ///撤销出差审批表
  static String approveForm = '/rcdg-logictics/sa-trip-reimburse/approveForm';

  ///办公用品领用申请单操作
  static String officeUsageApproveForm =
      '/rcdg-logictics/logictics-info/approveForm';

  ///出差申请单操作
  static String awayApplyApproveForm =
      '/rcdg-logictics/sa-trip-reimburse/approveForm';

  ///获取出差审批表详情
  static String getTripReimburseDetail =
      '/rcdg-logictics/sa-trip-reimburse/getTripReimburseDetail';

  ///关联申请单列表
  static String listPassTripReimburse =
      '/rcdg-logictics/sa-trip-reimburse/listPassTripReimburse';

  ///会议列表
  static String listMeetingPages =
      '/rcdg-logictics/sa-meeting-product/listMeetingPages';

  ///会议房间列表
  static String getMeetingRoomList =
      '/rcdg-logictics/sa-meeting-product/getMeetingRoomList';

  ///会议列表
  static String getGroupUserList =
      '/rcdg-logictics/sa-meeting-manage/getGroupUserList';

  ///添加会议
  static String addMeeting = '/rcdg-logictics/sa-meeting-product/addMeeting';

  ///编辑会议
  static String editMeeting = '/rcdg-logictics/sa-meeting-product/editMeeting';

  ///会议详情
  static String getMeetingDetail =
      '/rcdg-logictics/sa-meeting-product/getMeetingDetail';

  ///取消会议
  static String cancelMeeting =
      '/rcdg-logictics/sa-meeting-product/cancelMeeting';

  ///删除会议
  static String delMeeting = '/rcdg-logictics/sa-meeting-product/delMeeting';

  ///检验会议房间时间和权限
  static String checkRoomAndTimeAuthority =
      '/rcdg-logictics/sa-meeting-product/checkRoomAndTimeAuthority';

  ///报修表单
  static String listRepairConfirm =
      '/rcdg-logictics/sa-repair/listRepairConfirm';

  ///报销审核
  static String listRepairApplys = '/rcdg-logictics/sa-repair/listRepairApplys';

  ///维修申请单详情
  static String getRepairDetail = '/rcdg-logictics/sa-repair/getRepairDetail';

  ///维修申请单提交
  static String addRepair = '/rcdg-logictics/sa-repair/addRepair';

  ///维修申请单通过不通过
  static String repairApproveForm = '/rcdg-logictics/sa-repair/approveForm';

  ///任务管理列表
  static String listTaskInfos = '/rcdg-task/task/listTaskInfos';

  ///任务管理筛选条件
  static String getSelectParam = '/rcdg-task/task/getSelectParam';

  ///任务详情
  static String getTaskDetail = '/rcdg-task/task/getTaskDetail';

  ///任务状态
  static String getRoleTaskStatus = '/rcdg-task/task/getRoleTaskStatus';

  ///调整日期
  static String updateTaskCompleteTime =
      '/rcdg-task/task/updateTaskCompleteTime';

  ///任务状态列表
  static String listAllTaskState = '/rcdg-task/org/listAllTaskState';

  ///更新任务状态
  static String updateTaskState = '/rcdg-task/org/updateTaskState';

  ///任务反馈列表
  static String listFeedBackFirstOrder =
      '/rcdg-task/feedback/listFeedBackFirstOrder';

  ///任务反馈列表项二级内容
  static String listFeedBackSecondOrder =
      '/rcdg-task/feedback/listFeedBackSecondOrder';

  ///任务反馈列表新
  static String listFeedBackFirstOrderNew =
      '/rcdg-task/feedback/listFeedBackFirstOrderNew';

  ///任务反馈列表项二级内容新
  static String listFeedBackSecondOrderNew =
      '/rcdg-task/feedback/listFeedBackSecondOrderNew';

  ///任务反馈通过退回
  static String auditFeedBackRecord = '/rcdg-task/feedback/auditFeedBackRecord';

  ///任务评价状态
  static String listEvaulationCycleNper =
      '/rcdg-task/evaluation/listEvaulationCycleNper';

  ///任务评价各成员状态
  static String listEvaulationedChainInfo =
      '/rcdg-task/evaluation/listEvaulationedChainInfo';

  ///任务评价开启评价获取类型
  static String getTaskAssessmentCycle =
      '/rcdg-task/task/getTaskAssessmentCycle';

  ///任务评价开启评价
  static String startCycleEvaluation =
      '/rcdg-task/evaluation/startCycleEvaluation';

  ///领导批示列表
  static String instruList = '/rcdg-task/instru/list';

  ///领导批示提交
  static String instruSave = '/rcdg-task/instru/save';

  ///督办通知列表
  static String listSuperHandle = '/rcdg-task/superhandle/listSuperHandle';

  ///通知任务状态
  static String listTaskState = '/rcdg-task/org/listTaskState';

  ///督办通知列表
  static String taskNoticeSave = '/rcdg-task/superhandle/save';

  ///任务日志
  static String listTaskLog = '/rcdg-task/log/listTaskLog';

  ///评价保存
  static String updateEvaluateInfo = '/rcdg-task/evaluation/updateEvaluateInfo';

  ///任务签收
  static String taskSignIn = '/rcdg-task/task/taskSignIn';
}
